# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wayvnc
pkgver=0.5.0
pkgrel=0
pkgdesc="A VNC server for wlroots-based Wayland compositors"
url="https://github.com/any1/wayvnc"
license="ISC"
arch="all"
makedepends="meson wlroots-dev libuv-dev neatvnc-dev bsd-compat-headers scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/any1/wayvnc/archive/v$pkgver.tar.gz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
b1e4eb2692810320dd4ee25dac7fb44b86a352f3e3e740180c8e611265584476f041ac646652c64be469c4bdf8687d8ce473bf0e189ca28ebfb16a40174f8d43  wayvnc-0.5.0.tar.gz
"
